package controleur;

import ihm.ihmFenetre;
import ihm.panelConfirmation;

import java.awt.Component;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.JButton;
import javax.swing.JOptionPane;

import composant.Utilisateur;
import composant.Velo;

import Traduction.RessourceLang;

public class listenerRendreVelo implements MouseListener{
	ihmFenetre fenetre;
	
	public listenerRendreVelo(ihmFenetre fenetre) {
		super();
		this.fenetre = fenetre;
	}

	@Override
	public void mouseClicked(MouseEvent e) {

		JOptionPane.showMessageDialog(fenetre,RessourceLang.getLabel("Rendre.velo") ,RessourceLang.getLabel("panelAccueil.Rendre"),
				JOptionPane.NO_OPTION) ;
		// Action simulateur
		fenetre.getCard().show(fenetre.getContentPane(), "accueil");
		
	}

	@Override
	public void mouseEntered(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseExited(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mousePressed(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseReleased(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

}
